import request from '@/utils/request'

// 查询车辆记录表列表
export function getlog(query) {
  return request({
    url: '/eamp/car_logs/getlog',
    method: 'get',
    params: query
  })
}

// 查询车辆记录表详细
export function getCar_logs(logsId) {
  return request({
    url: '/eamp/car_logs/' + logsId,
    method: 'get'
  })
}

// 新增车辆记录表
export function addCar_logs(data) {
  return request({
    url: '/eamp/car_logs',
    method: 'post',
    data: data
  })
}

// 修改车辆记录表
export function updateCar_logs(data) {
  return request({
    url: '/eamp/car_logs',
    method: 'put',
    data: data
  })
}

// 删除车辆记录表
export function delCar_logs(logsId) {
  return request({
    url: '/eamp/car_logs/' + logsId,
    method: 'delete'
  })
}
